package com.woniuxy.main.mapper;

import com.woniuxy.main.pojo.Department;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 *
 *  @author zhc
 *  @create 2019-08-01 12:05
 */
@Repository
public interface DepartmentMapper {

    @Select("select * from department where department_id=#{department_id}")
    Department findById(int department_id);

    @Select("select * from department")
    List<Department> findall();
}
